package Main;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.HashMap;

/**
 *
 * @author Huy
 */
public class SoundFactoryDefault extends SoundFactory{
		

	public SoundFactoryDefault() {
		listMusic = new HashMap<>();
		SoundClip click =  new SoundClip("Audio/click.WAV");
		click.setVolume(-10);
		SoundClip game = new SoundClip("Audio/background.WAV");
		game.setVolume(-25);
		listMusic.put("game", game);
		listMusic.put("click",click);
		listMusic.put("hit1", new SoundClip("Audio/hit1.wav"));
		listMusic.put("hit2", new SoundClip("Audio/hit2.WAV"));
		listMusic.put("hit3", new SoundClip("Audio/hit3.wav"));
		listMusic.put("hit4", new SoundClip("Audio/hit4.WAV"));
		listMusic.put("scream", new SoundClip("Audio/scream.WAV"));
		listMusic.put("speak", new SoundClip("Audio/speak.WAV"));
	}

	/**
	 *
	 * @param name
	 * @return
	 */
	@Override
	public Sound getSound(String name) {
		return listMusic.get(name);
	}
}
